package com.hs.srm.admin.modules.pricemanagement.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.hs.srm.base.common.annotation.DictMapping;
import com.hs.srm.base.common.base.CloneableEntity;
import com.hs.srm.base.common.utils.DictDataUtil;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;


/*
 *
 */
@Setter
@Getter
@TableName("inquiry_item")
@ToString
public class InquiryItemEntity implements Serializable, CloneableEntity<InquiryItemEntity> {

    private static final long serialVersionUID = 1L;

    public InquiryItemEntity() {
        super();
    }

    /*
     * 主键ID
     */
    @TableId(value = "inquiry_item_id", type = IdType.UUID)
    @TableField("inquiry_item_id")
    @Excel(name = "主键ID", orderNum = "1")
    private java.lang.String inquiryItemId;

    /*
     * 询价单ID
     */
    @TableField("inquiry_id_")
    @Excel(name = "询价单ID", orderNum = "2")
    private java.lang.String inquiryId;

    /*
     * 汇总号
     */
    @TableField("inquiry_total_code")
    @Excel(name = "汇总号", orderNum = "3")
    private java.lang.String inquiryTotalCode;

    /*
     * 行项目
     */
    @TableField("inquiry_item_code")
    @Excel(name = "行项目", orderNum = "4")
    private java.lang.String inquiryItemCode;

    /*
     * 物料编码
     */
    @TableField("material_code")
    @Excel(name = "物料编码", orderNum = "5")
    private java.lang.String materialCode;

    /*
     * 物料描述
     */
    @TableField("material_desc")
    @Excel(name = "物料描述", orderNum = "6")
    private java.lang.String materialDesc;

    /*
     * 数量
     */
    @TableField("purchase_cnt")
    @Excel(name = "数量", orderNum = "7")
    private java.math.BigDecimal purchaseCnt;

    /*
     * 采购订单单位
     */
    @TableField("po_unit")
    @Excel(name = "采购订单单位", orderNum = "8")
    @DictMapping(type = DictDataUtil.DictType.JLDW)
    private java.lang.String poUnit;

    /*
     * 交货日期
     */
    @TableField("delivery_date")
    @Excel(name = "交货日期", orderNum = "9")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private java.sql.Date deliveryDate;

    /*
     * 工厂
     */
    @TableField("werks")
    @Excel(name = "工厂", orderNum = "10")
    @DictMapping(type = DictDataUtil.DictType.GC)
    private java.lang.String werks;

    /*
     * 库存地点
     */
    @TableField("storage_location")
    @Excel(name = "库存地点", orderNum = "11")
    private java.lang.String storageLocation;

    /*
     * 物料组
     */
    @TableField("material_group")
    @Excel(name = "物料组", orderNum = "12")
    @DictMapping(type = DictDataUtil.DictType.KCDD)
    private java.lang.String materialGroup;

    /*
     * 参考PR
     */
    @TableField("purch_request_code")
    @Excel(name = "参考PR", orderNum = "13")
    private java.lang.String purchRequestCode;

    /*
     * 参考行项目
     */
    @TableField("purch_request_item_code")
    @Excel(name = "参考行项目", orderNum = "14")
    private java.lang.String purchRequestItemCode;

    /*
     * 行项附件
     */
    @TableField("attachment")
    @Excel(name = "行项附件", orderNum = "15")
    private java.lang.String attachment;

    /*
     * 项目备注
     */
    @TableField("remark")
    @Excel(name = "项目备注", orderNum = "16")
    private java.lang.String remark;

    /*
     * 创建时间
     */
    @TableField("creation_date")
    @Excel(name = "创建时间", orderNum = "17")
    private java.sql.Timestamp creationDate;

    /*
     * 创建者
     */
    @TableField("created_by")
    @Excel(name = "创建者", orderNum = "18")
    private java.lang.String createdBy;

    /*
     * 修改日期
     */
    @TableField("last_update_date")
    @Excel(name = "修改日期", orderNum = "19")
    private java.sql.Timestamp lastUpdateDate;

    /*
     * 修改人
     */
    @TableField("last_updated_by")
    @Excel(name = "修改人", orderNum = "20")
    private java.lang.String lastUpdatedBy;

    /**
     * 删除标识:0,未删除；1，已删除
     */
    @TableField("delete_flag")
    @Excel(name = "删除标识", orderNum = "21")
    private Integer deleteFlag;

    /*
     *
     */
    @TableField("request_code")
    @Excel(name = "", orderNum = "22")
    private java.lang.String requestCode;

    /*
     * 采购申请行项目id
     */
    @TableField("npk_id")
    @Excel(name = "", orderNum = "23")
    private java.lang.String npkId;

    /*
     *
     */
    @TableField("attribute3")
    @Excel(name = "", orderNum = "24")
    private java.lang.String attribute3;

    /*
     *
     */
    @TableField("attribute4")
    @Excel(name = "", orderNum = "25")
    private java.lang.String attribute4;

    /*
     *
     */
    @TableField("attribute5")
    @Excel(name = "", orderNum = "26")
    private java.lang.String attribute5;

    /*
     *
     */
    @TableField("attribute6")
    @Excel(name = "", orderNum = "27")
    private java.lang.String attribute6;

    /*
     *
     */
    @TableField("attribute7")
    @Excel(name = "", orderNum = "28")
    private java.lang.String attribute7;

    /*
     *
     */
    @TableField("attribute8")
    @Excel(name = "", orderNum = "29")
    private java.lang.String attribute8;

    /*
     *
     */
    @TableField("attribute9")
    @Excel(name = "", orderNum = "30")
    private java.lang.String attribute9;

    /*
     *
     */
    @TableField("attribute10")
    @Excel(name = "", orderNum = "31")
    private java.lang.String attribute10;

    @Override
    public InquiryItemEntity clone() {
        try {
            return (InquiryItemEntity) super.clone();
        } catch (CloneNotSupportedException ex) {
            // TODO Auto-generated catch block
            ex.printStackTrace();
        }
        return null;
    }
}
